package com.mydemo.design_pattern.create_type.builder_pattern;

import com.mydemo.design_pattern.create_type.builder_pattern.impl.ChickenBurger;
import com.mydemo.design_pattern.create_type.builder_pattern.impl.CokeDrink;
import com.mydemo.design_pattern.create_type.builder_pattern.impl.PepsiDrink;
import com.mydemo.design_pattern.create_type.builder_pattern.impl.VegBurger;

/**
 * <p></p >
 *
 * @author liming1
 * @version $Id: MealBuilder, v1.0 2019-09-18 13:59 liming1 Exp $
 */
public class MealBuilder {

    public Meal prepareVegMeal(){
        Meal meal = new Meal();
        meal.setItem(new VegBurger());
        meal.setItem(new CokeDrink());
        return meal;
    }

    public Meal prepareNonVegMeal(){
        Meal meal = new Meal();
        meal.setItem(new ChickenBurger());
        meal.setItem(new PepsiDrink());
        return meal;
    }

    // ----- 可以构造N个
}
